package com.xuelang.pipeline.app.resource.request;

import io.kubernetes.client.openapi.models.V1ConfigMap;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import java.util.Map;

/**
 * @author liuyuan.ly
 * @since 2024/7/23 10:26
 */
@Data
public class ConfigMapRequest {

    @NotEmpty(message = "链接凭证不能为空")
    private String kubeConfig;
    /**
     * 命名空间,唯一标识
     */
    @NotEmpty(message = "命名空间名称不能为空")
    private String namespaceName;

    private String configMapName;

    private Map<String, String> data;

    private V1ConfigMap v1ConfigMap;
}
